﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class YesNo
    {
        public Boolean falg = true;
        public Boolean falg1 = true;
        public Boolean falg2 = false;
        public int index = 0;
        public void Play()
        {
            Console.WriteLine("开始游戏吗?（y/n）");
            string check = Console.ReadLine();
            if (check.Equals("n"))
            {
                falg = false;
            }
        }
        public void coming()
        {
            Console.WriteLine("是否开始下一轮？（y/n）");
            string check = Console.ReadLine();
            index++;
            if (check.Equals("n"))
            {
                falg1 = false;
            }
        }
        public void Again()
        {
            Console.WriteLine("继续游戏吗?（y/n）");
            string check = Console.ReadLine();
            if (check.Equals("y"))
            {
                falg2 = true;
            }
        }
    }
}
